package com.emep.changzhi.analyse.repository.datamonitor.realtime;

import com.emep.changzhi.analyse.entity.datamonitor.realtime.RoadDustRealtime;
import com.emep.changzhi.analyse.entity.error.AirQuality;
import org.springframework.data.cassandra.repository.Query;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.domain.Specification;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.repository.CrudRepository;
import org.springframework.data.repository.query.Param;

import java.util.List;

/**
 * @author xy
 * @Description: 道路扬尘监测_实时数据持久层
 * @date 2018/2/27 11:46
 * @version V1.0
 */

public interface RoadDustRealtimeRepository extends CrudRepository<RoadDustRealtime, Long> {
    @Query("select * from data_road_dust limit :pageSize")
    List<RoadDustRealtime> roadDustRealtimeHome(@Param("pageSize") Integer pageSize);
    @Query("select * from data_road_dust where token(id)>token(:id) limit :pageSize")
    List<RoadDustRealtime> roadDustRealtimeFlip(@Param("id")String id,@Param("pageSize") Integer pageSize);
}
